home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4210 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  986 b 

  1. Path: news.mindlink.net!uniserve!usenet
  2. From: nowher@anyplace.com (Chris)
  3. Newsgroups: comp.lang.c++
  4. Subject: Help!! I'm a stuck newbie - input problem
  5. Date: 29 Jan 1996 00:22:13 GMT
  6. Organization: UNIServe Online
  7. Distribution: world
  8. Message-ID: <4eh3vl$g8i@atlas.uniserve.com>
  9. NNTP-Posting-Host: van0305.tvs.net
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.99.2
  12.  
  13. I am writing a simple database type program and have run into difficulty.
  14.  
  15. Presently, I have the following variables declared:
  16.  
  17. char TempStr[20];
  18. char ch;
  19. int x=0;
  20.  
  21. I need to input a string with a max length of 15 chars.
  22. ( I need to fill the database fields:  Part Number:[               ]  )
  23.  
  24. I do not want to overwrite the bracket on the right of the field. I have 
  25. tried various methods, but I get errors, or it otherwise doesn't do what 
  26. I need it to.  
  27.  
  28. I would show some code, but I have deleted it several times in 
  29. frustration.
  30.  
  31. Please e-mail me with help on this. ANY help would be greatly 
  32. appreciated.
  33.  
  34. Thanks,
  35. Chris
  36.  
  37.